<template>
	<view class="mt-2 py-2 bg-white">
		<view class="px-2 d-flex j-sb font">
			<text class=" font-dark">订单号：202308011234567890</text>
			<text class="font-theme-color">交易成功</text>
		</view>

		<view class=" py-2 bg-white d-flex">
			<view style="width: 148rpx;height: 148rpx;" class="rounded over-hidden">
				<image src="/static/product/goods1.jpg" class="w-100 h-100" />
			</view>
			<view class="flex-1 font text-dark pl-1">
				<text class="">1982年茅台,原装正品 假一赔十</text>
			</view>
			<view class="text-right flex-col px-2" style="width: 130rpx;">
				<view class="font-dark font-md">¥1899.00</view>
				<view class="font-grey font-sm">x1</view>
			</view>
		</view>
		<view class="pr-2 mt-2 bg-white border-top border-bottom text-right">
			<text class="font-dart font-md">实付:¥1499</text>
		</view>
		<view class="pr-2 mt-2 d-flex j-end font">
			<view class="px-2 py-2 font-dart border border-dark rounded-10 px-2">删除订单</view>
		</view>
	</view>
		<view class="mt-2 py-2 bg-white">
		<view class="px-2 d-flex j-sb font">
			<text class=" font-dark">订单号：202308011234567890</text>
			<text class="font-theme-color">交易成功</text>
		</view>

		<view class=" py-2 bg-white d-flex">
			<view style="width: 148rpx;height: 148rpx;" class="rounded over-hidden">
				<image src="/static/product/goods1.jpg" class="w-100 h-100" />
			</view>
			<view class="flex-1 font text-dark pl-1">
				<text class="">1982年茅台,原装正品 假一赔十</text>
			</view>
			<view class="text-right flex-col px-2" style="width: 130rpx;">
				<view class="font-dark font-md">¥1899.00</view>
				<view class="font-grey font-sm">x1</view>
			</view>
		</view>
		<view class="pr-2 mt-2 bg-white border-top border-bottom text-right">
			<text class="font-dart font-md">实付:¥1499</text>
		</view>
		<view class="pr-2 mt-2 d-flex j-end font">
			<view class="px-2 py-2 font-dart border border-dark rounded-10 px-2">删除订单</view>
		</view>
	</view>
</template>

<script setup>
import useAuthStore from '@/stores/auth'
import userHttp from '@/apis/user/userHttp'
const authStore = useAuthStore()
import { onShow } from "@dcloudio/uni-app"

onShow(()=>{
  if (!authStore.is_logined) {
    uni.redirectTo({
      url: '/pages/login/login'
    })
  }
}) 


</script>

<style></style>
